package com.xyz;

import java.util.List;

public class Film {
	private String title;
	private int year;
	private String id;
	private String text;
	private List<String> genres;
	private String posterWay;
	
	public Film(String title, int year, List<String> genres) {
		super();
		this.title = title;
		this.year = year;
		this.genres = genres;
		this.id="undefined";
		this.text="no text";
		this.posterWay="/mainpr/pic/poster_shawshank.jpg";
	}
	
	public Film(String id, String title, int year, String text, List<String> genres){
		super();
		this.title = title;
		this.year = year;
		this.genres = genres;
		this.id=id;
		this.text=text;
		this.posterWay="/mainpr/pic/poster_"+this.id+".jpg";
	}
	
	
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<String> getGenres() {
		return genres;
	}
	public void setGenres(List<String> genres) {
		this.genres = genres;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getPosterWay() {
		return posterWay;
	}

	public void setPosterWay(String poster_way) {
		this.posterWay = poster_way;
	}
	
}
